package com.aiyige.base.eventbus;

public class EventAgreement {
    boolean agree;
    public EventAgreement() {
    }

    private EventAgreement(Builder builder) {
        agree = builder.agree;
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public boolean isAgree() {
        return agree;
    }

    public void setAgree(boolean agree) {
        this.agree = agree;
    }


    public static final class Builder {
        private boolean agree;

        private Builder() {
        }

        public Builder agree(boolean val) {
            agree = val;
            return this;
        }

        public EventAgreement build() {
            return new EventAgreement(this);
        }
    }
}
